symfony get locale from request in controller

94

use Symfony\Component\HttpFoundation\Request;

public function index(Request $request)
{
    $locale = $request->getLocale();
}

Comments

Submit
0 Comments